Skip to content

General: Merge one-pod mode settings into a single toggle#516

Merged
d4rken merged 1 commit intomainfrom
feat/merge-one-pod-mode-settings
Apr 15, 2026
Merged

General: Merge one-pod mode settings into a single toggle#516
d4rken merged 1 commit intomainfrom
feat/merge-one-pod-mode-settings

Conversation

@d4rken
Copy link
Copy Markdown
Member

@d4rken d4rken commented Apr 15, 2026

What changed

The separate "Noise Cancellation with One AirPod" toggle (in the Noise Control section) has been merged into the existing "One pod mode" toggle (in the Reactions section). Toggling one-pod mode now also keeps noise cancellation active when wearing a single AirPod, on supported models.

Technical Context

  • The two settings had different storage mechanisms: one-pod mode was an app-local profile boolean, while NC-with-one-AirPod was a firmware setting sent over AAP. A new NcOnePodSender (following the StemConfigSender pattern) syncs the firmware NC setting from the profile on AAP connect/reconnect, so the setting is applied even if the user toggles it while disconnected.
  • The one-pod mode toggle's enablement gate now includes hasNcOneAirpod, so on NC-capable devices (Pro, Pro 2, Pro 3, Gen4 ANC) the toggle is usable even without autoplay/autopause enabled.
  • The ViewModel sends the AAP command immediately on toggle for responsiveness, with the deferred sender as a fallback for reconnect scenarios. The duplicate send is idempotent.

Combine reaction one-pod mode (autoplay/autopause) and firmware NC-with-one-AirPod into one setting. The merged toggle always sets the app-local flag and additionally syncs the firmware NC setting via AAP when connected.

Also remove redundant @OptIn(ExperimentalCoroutinesApi::class) annotations from tests, already covered by the global compiler opt-in flag.
@d4rken d4rken added the enhancement Add a new feature of improve an existing feature label Apr 15, 2026
@d4rken d4rken merged commit f17b6ca into main Apr 15, 2026
10 checks passed
@d4rken d4rken deleted the feat/merge-one-pod-mode-settings branch April 15, 2026 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Add a new feature of improve an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant